package com.eta.user.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author 星河一叶Ck
 * @date 2025/9/6
 * @description 用户登录请求参数
 */

@Data
@Schema(description = "用户登录请求参数")
public class UserLoginDto {

    @NotBlank(message = "账号不能为空")
    @Schema(description = "登录账号（账号/手机号）", example = "admin")
    private String account;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "登录密码", example = "123456")
    private String password;

    @Schema(description = "验证码", example = "8A7B")
    private String captcha;

    // 登录类型(0: 账号密码登录 1: 手机号登录)
    private int loginType;

    // 登录IP
    private String loginIp;
}